package com.bootx.service.impl;

import com.bootx.common.Page;
import com.bootx.common.Pageable;
import com.bootx.dao.LotteryDao;
import com.bootx.entity.Lottery;
import com.bootx.service.LotteryService;
import jakarta.annotation.Resource;
import jakarta.persistence.criteria.Predicate;
import org.apache.commons.lang3.StringUtils;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import java.util.List;

import static com.bootx.entity.BaseEntity.CREATED_DATE_PROPERTY_NAME;

/**
 * @author black
 */
@Service
public class LotteryServiceImpl extends BaseServiceImpl<Lottery,Long> implements LotteryService {

    @Resource
    private LotteryDao lotteryDao;

    @Override
    public Lottery findByCode(Long code) {
        return lotteryDao.find("code",code);
    }


}
